/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2016-2026 hmc,Inc.All Rights Reserved.
 */
package com.sys.midware.hive.config;

/**
 * 数据源连接池VO
 * 
 * @author mobing@b5m.com
 * @date 2015-08-11
 * @version 1.0
 */
public class PoolConfig {

    private int initialSize;
    private int maxActive;
	
    private boolean isCheckPool;
    
    private long checkDelayMilSecond;
    
    private long checkPeriodMilSecond;

    /**
     * initialSize
     *
     * @return  the initialSize
     */
    
    public int getInitialSize() {
        return initialSize;
    }

    /**
     * @param initialSize the initialSize to set
     */
    public void setInitialSize(int initialSize) {
        this.initialSize = initialSize;
    }

    /**
     * maxActive
     *
     * @return  the maxActive
     */
    
    public int getMaxActive() {
        return maxActive;
    }

    /**
     * @param maxActive the maxActive to set
     */
    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    /**
     * isCheckPool
     *
     * @return  the isCheckPool
     */
    
    public boolean isCheckPool() {
        return isCheckPool;
    }

    /**
     * @param isCheckPool the isCheckPool to set
     */
    public void setCheckPool(boolean isCheckPool) {
        this.isCheckPool = isCheckPool;
    }

    /**
     * checkDelayMilSecond
     *
     * @return  the checkDelayMilSecond
     */
    
    public long getCheckDelayMilSecond() {
        return checkDelayMilSecond;
    }

    /**
     * @param checkDelayMilSecond the checkDelayMilSecond to set
     */
    public void setCheckDelayMilSecond(long checkDelayMilSecond) {
        this.checkDelayMilSecond = checkDelayMilSecond;
    }

    /**
     * checkPeriodMilSecond
     *
     * @return  the checkPeriodMilSecond
     */
    
    public long getCheckPeriodMilSecond() {
        return checkPeriodMilSecond;
    }

    /**
     * @param checkPeriodMilSecond the checkPeriodMilSecond to set
     */
    public void setCheckPeriodMilSecond(long checkPeriodMilSecond) {
        this.checkPeriodMilSecond = checkPeriodMilSecond;
    }
    
    
    
//	@Override
//	public String toString() {
//		StringBuffer druidConfig = new StringBuffer();
//		druidConfig.append("driver:" + getDriverClassName() + ",");
//		druidConfig.append("url:" + this.getUrl() + ",");
//		druidConfig.append("username:" + this.getUsername() + ",");
//		druidConfig.append("password:" + this.getPassword() + ",");
//		druidConfig.append("initialSize:" + this.getInitialSize() + ",");
//		druidConfig.append("maxActive:" + this.getMaxActive() + ",");
//		druidConfig.append("minIdle:" + this.getMinIdle() + ",");
//		druidConfig.append("maxWait:" + this.getMaxWait() + ",");
//		// druidConfig.append("url:"+this.getMaxPoolPreparedStatementPerConnectionSize()+",");
//		// druidConfig.append(this.getPoolPreparedStatements()+",");
//		// druidConfig.append(this.getTestOnBorrow()+",");
//		return druidConfig.toString();
//	}
}